// @Author maotao
// Created by tao on 24-9-17.
//

#ifndef __BLOCK_H__
#define __BLOCK_H__

#include <font.h>

#define BLOCK_X_INIT 127
#define BLOCK_Y 0
#define BLOCK_H 64
#define BLOCK_X_MIN -20
#define BLOCK_BUILD_MIN 50
#define BLOCK_BUILD_MAX 128
#define BLOCK_INIT(name, width, x_pos) Block name = {.w = width, .x = x_pos}

typedef struct _block {
    unsigned int w;
    unsigned int x;
    unsigned int gap_size;
    unsigned int gap_y;
} Block;

void block_iterator(Block *block);

void OLED_DrawBlock(const Block *block);

void completeBlockInit(Block *block);

#endif
